-- GENERATED SPELL FOR [Infinite Vanquisher] --


function spell0_18995(pUnit, Event) --@Corrupt Medivh,n/a--
pUnit:FullCastSpellOnTarget(31326,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18995', 0, 1)
end

function spell1_18995(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(13341,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18995', 511, 1)
end

function spell2_18995(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(38526,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18995', 519, 1)
end

function spell3_18995(pUnit, Event) --@Scorch,n/a--
pUnit:FullCastSpellOnTarget(15241,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18995', 1500, 1)
end

function spell4_18995(pUnit, Event) --@Scorch,n/a--
pUnit:FullCastSpellOnTarget(36807,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18995', 1500, 1)
end

function Sorts_18995(pUnit, Event)
local choix_sorts_18995 = math.random(0, 4)
if choix_sorts_18995 == 0 then
pUnit:RegisterEvent('spell0_18995', 1, 1)
end
if choix_sorts_18995 == 1 then
pUnit:RegisterEvent('spell1_18995', 1, 1)
end
if choix_sorts_18995 == 2 then
pUnit:RegisterEvent('spell2_18995', 1, 1)
end
if choix_sorts_18995 == 3 then
pUnit:RegisterEvent('spell3_18995', 1, 1)
end
if choix_sorts_18995 == 4 then
pUnit:RegisterEvent('spell4_18995', 1, 1)
end
end

function mob18995_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18995', math.random(1500, 3000), 1)
end

function mob18995_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18995_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18995_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18995, 1, 'mob18995_Action')
RegisterUnitEvent(18995, 2, 'mob18995_Leave')
RegisterUnitEvent(18995, 3, 'mob18995_Kill')
RegisterUnitEvent(18995, 4, 'mob18995_Die')
